package UserView;

import Model.User;

import java.io.InputStream;
import java.util.Scanner;

public class UseUi {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        boolean flag=true;
        while (flag){
            System.out.println("创建用户进入界面可以完成的功能有：（1）" +
                    ".存钱(2).取钱(3).查询余额(4).转账(5).退卡");
            int select = scanner.nextInt();
            switch (select){
                case 1:
                    System.out.println("请输入您要存储的金额");
                   Scanner scanner1 =new Scanner(System.in);
                   int cun = scanner1.nextInt();
                    System.out.println("操作成功");break;
                case 2: System.out.println("请输入您要取出的金额");
                    Scanner scanner2 =new Scanner(System.in);
                    int qu = scanner2.nextInt();
                    System.out.println("操作成功");
                    break;
                case 3:
                    System.out.println("您的余额是4000000.00");break;
                case 4:System.out.println("请输入您要转账的金额");
                    Scanner scanner3 =new Scanner(System.in);
                    int quu = scanner3.nextInt();
                    System.out.println("操作成功");
                break;
                case 5: System.out.println("退卡");return;
                default:
                    System.out.println("无效的选项，重新选择");
            }
        }
    }


}
